import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

const pc = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    label: '首页',
    name: 'home',
    path: '/home',
    component: () => import('@v/pc/home')
  },
  {
    label: '分类',
    name: 'classify',
    path: '/classify',
    component: () => import('@v/pc/classify/classify')
  },
  {
    label: '个人中心',
    name: 'profile',
    path: '/profile',
    component: () => import('@v/pc/user/profile')
  },
  {
    label: '编辑个人信息',
    name: 'editProfile',
    path: '/editProfile',
    component: () => import('@v/pc/user/editProfile')
  },
  {
    label: '文章编辑',
    name: 'articleEdit',
    path: '/articleEdit',
    component: () => import('@v/pc/article/articleEdit')
  },
  {
    label: '化妆品详情',
    name: 'cosmeticsDetail',
    path: '/cosmeticsDetail',
    component: () => import('@v/pc/detail/cosmeticsDetail')
  }
]

export default new Router({
  routes: pc
})
